<?php

namespace app\listing\controller;
use app\common\controller\PCBase;
use app\listing\logic\ListingShopLogic;
use Throwable;
use think\App;
class ListingShop extends PCBase
{

    /**
     * @desc    获取店铺在线产品列表
     * @author  luckyXiong
     * @date    2024-11-28
     */
    public function index()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->getProductList($params);
    }


    /**
     * @desc    获取sku列表信息
     * @author  luckyXiong
     * @date    2024-11-28
     */
    public function get_sku_list()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->get_sku_list($params);
    }



    /**
     * @desc    获取店铺在线产品列表
     * @author  luckyXiong
     * @date    2024-11-28
     */
    public function getInfo()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->getInfo($params);
    }


    /**
     * @desc    编辑店铺信息接口
     * @author  luckyXiong
     * @date    2024-11-28
     */
    public function edit()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->edit_shop_product($params);
    }


    /**
     * @desc    添加备注接口
     * @author  luckyXiong
     * @date    2024-11-30
     */
    public function add_remark()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->add_remark($params);
    }


    /**
     * @desc    产品发布
     * @author  luckyXiong
     * @date    2024-12-01
     */
    public function send_product()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->send_product($params);
    }


    /**
     * @desc    编辑产品发布
     * @author  luckyXiong
     * @date    2024-12-01
     */
    public function update_send_product()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->update_send_product($params);
    }



    /**
     * @desc    产品下架
     * @author  luckyXiong
     * @date    2024-12-01
     */
    public function under_product()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->under_product($params);
    }


    /**
     * @desc    产品上架
     * @author  luckyXiong
     * @date    2024-12-01
     */
    public function list_product()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->list_product($params);
    }

    /**
     * @desc    删除产品
     * @author  luckyXiong
     * @date    2024-12-01
     */
    public function delete_product()
    {
        $params     = $this->request->post();
        return  (new ListingShopLogic())->delete_product($params);
    }














}